import service from '@/utils/request'

export const getApplicationList = (params) => {
  return service({
    url: '/manager/application/list',
    method: 'get',
    params
  })
}

export const getAllApplication = (params) => {
  return service({
    url: '/manager/application/all',
    method: 'get',
    params
  })
}

export const deleteApplication = (id) => {
  return service({
    url: `/manager/application/delete/${id}`,
    method: 'post'
  })
}

export const createApplication = (data) => {
  return service({
    url: '/manager/application/add',
    method: 'post',
    data
  })
}

export const updateApplication = (data) => {
  return service({
    url: '/manager/application/edit',
    method: 'post',
    data
  })
}

export const changeStatus = (id) => {
  return service({
    url: `/manager/application/change/status/${id}`,
    method: 'post'
  })
}

export const getDyList = (params) => {
  return service({
    url: '/manager/dictionary/un/list',
    method: 'get',
    params
  })
}

export const deleteDy = (id) => {
  return service({
    url: `/manager/dictionary/un/delete/${id}`,
    method: 'post'
  })
}

export const createDy = (data) => {
  return service({
    url: '/manager/dictionary/un/add',
    method: 'post',
    data
  })
}

export const updateDyn = (data) => {
  return service({
    url: '/manager/dictionary/un/edit',
    method: 'post',
    data
  })
}

export const batchDeleteDy = (data) => {
  return service({
    url: '/manager/dictionary/un/batch/delete',
    method: 'post',
    data
  })
}

export const getFwList = (params) => {
  return service({
    url: '/manager/dictionary/rs/list',
    method: 'get',
    params
  })
}

export const deleteFw = (id) => {
  return service({
    url: `/manager/dictionary/rs/delete/${id}`,
    method: 'post'
  })
}

export const createFw = (data) => {
  return service({
    url: '/manager/dictionary/rs/add',
    method: 'post',
    data
  })
}

export const updateFw = (data) => {
  return service({
    url: '/manager/dictionary/rs/edit',
    method: 'post',
    data
  })
}

export const batchDeleteFw = (data) => {
  return service({
    url: '/manager/dictionary/rs/batch/delete',
    method: 'post',
    data
  })
}

export const getYfList = (params) => {
  return service({
    url: '/manager/dictionary/ur/list',
    method: 'get',
    params
  })
}

export const deleteYf = (id) => {
  return service({
    url: `/manager/dictionary/ur/delete/${id}`,
    method: 'post'
  })
}

export const createYf = (data) => {
  return service({
    url: '/manager/dictionary/ur/add',
    method: 'post',
    data
  })
}

export const updateYf = (data) => {
  return service({
    url: '/manager/dictionary/ur/edit',
    method: 'post',
    data
  })
}

export const batchDeleteYf = (data) => {
  return service({
    url: '/manager/dictionary/ur/batch/delete',
    method: 'post',
    data
  })
}

export const getZjList = (params) => {
  return service({
    url: '/manager/dictionary/rank/list',
    method: 'get',
    params
  })
}

export const deleteZj = (id) => {
  return service({
    url: `/manager/dictionary/rank/delete/${id}`,
    method: 'post'
  })
}

export const createZj = (data) => {
  return service({
    url: '/manager/dictionary/rank/add',
    method: 'post',
    data
  })
}

export const updateZj = (data) => {
  return service({
    url: '/manager/dictionary/rank/edit',
    method: 'post',
    data
  })
}

export const getMcList = (params) => {
  return service({
    url: '/manager/dictionary/noun/list',
    method: 'get',
    params
  })
}

export const deleteMc = (id) => {
  return service({
    url: `/manager/dictionary/noun/delete/${id}`,
    method: 'post'
  })
}

export const createMc = (data) => {
  return service({
    url: '/manager/dictionary/noun/add',
    method: 'post',
    data
  })
}

export const updateMc = (data) => {
  return service({
    url: '/manager/dictionary/noun/edit',
    method: 'post',
    data
  })
}

export const batchDeleteMc = (data) => {
  return service({
    url: '/manager/dictionary/noun/batch/delete',
    method: 'post',
    data
  })
}

export const getXxList = (params) => {
  return service({
    url: '/manager/message/list',
    method: 'get',
    params
  })
}

export const deleteXx = (id) => {
  return service({
    url: `/manager/message/delete/${id}`,
    method: 'post'
  })
}

export const createXx = (data) => {
  return service({
    url: '/manager/message/add',
    method: 'post',
    data
  })
}

export const updateXx = (data) => {
  return service({
    url: '/manager/message/edit',
    method: 'post',
    data
  })
}

export const getWjList = (params) => {
  return service({
    url: '/file/list',
    method: 'get',
    params
  })
}

export const createWj = (data) => {
  return service({
    url: '/file/submit',
    method: 'post',
    data
  })
}

export const deleteWj = (id) => {
  return service({
    url: `/file/delete/${id}`,
    method: 'post'
  })
}

export const updateQd = (data) => {
  return service({
    url: '/manager/driver/file/edit',
    method: 'post',
    data
  })
}

export const getQdList = (params) => {
  return service({
    url: '/manager/driver/file/list',
    method: 'get',
    params
  })
}

export const createQd = (data) => {
  return service({
    url: '/manager/driver/file/add',
    method: 'post',
    data
  })
}

export const deleteQd = (id) => {
  return service({
    url: `/manager/driver/file/delete/${id}`,
    method: 'post'
  })
}

export const workflowAdd = (data) => {
  return service({
    url: '/manager/dictionary/workflow/add',
    method: 'post',
    data
  })
}

export const workflowEdit = (data) => {
  return service({
    url: '/manager/dictionary/workflow/edit',
    method: 'post',
    data
  })
}

export const workflowAll = (params) => {
  return service({
    url: '/manager/dictionary/workflow/all',
    method: 'get',
    params
  })
}

export const workflowInfo = (id) => {
  return service({
    url: `/manager/dictionary/workflow/info/${id}`,
    method: 'get'
  })
}

export const workflowDelete = (id) => {
  return service({
    url: `/manager/dictionary/workflow/delete/${id}`,
    method: 'post'
  })
}


